import { ReactNode } from 'react';
import { createStateContext } from 'react-use';

interface State {
  opened?: boolean;
  duration?: number;
  upward?: boolean;
  defaultUpward?: boolean;
  value?: string | number | boolean;
  text?: ReactNode;
}

const [useDropdownContext, DropdownContextProvider] = createStateContext<State>({});

export { useDropdownContext, DropdownContextProvider };
